//
//  AL_ModelSingDetail.m
//  22-homework-QQMV-ALi
//
//  Created by 王道林 on 16/8/15.
//  Copyright © 2016年 王道林. All rights reserved.
//

#import "AL_ModelSingDetail.h"
#import "AL_ModelSongList.h"

@implementation AL_ModelSingDetail

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"description"]) {
        _AL_description = value;
    }
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"songList"]) {
        NSMutableArray *arr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            AL_ModelSongList *modelList = [AL_ModelSongList modelWithDic:dic];
            [arr addObject:modelList];
        }
        _songList = arr;
    }
}



@end
